package com.vinoxm.common.core.handler;

import com.vinoxm.common.core.interceptor.CustomHandlerInterceptor;
import lombok.extern.log4j.Log4j2;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Log4j2
public class BaseHandlerInterceptor extends CustomHandlerInterceptor {

    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {

        log.info("Access request: [" + request.getMethod() + "] " + request.getRequestURI());
        return true;
    }
}
